Benjamin Otte [Tue, 30 Jun 2009 11:22:51 +0000 (13:22 +0200)]
clean up code in gtk_list_store_set_n_columns()
Previous code's messiness noted by Francisco Javier Taboada Aguado
in http://mail.gnome.org/archives/gtk-devel-list/2009-June/msg00001.html
Nguyễn Thái Ngọc Duy [Wed, 1 Jul 2009 04:15:19 +0000 (14:15 +1000)]
po/vi.po: updated Vietnamese translation
Matthias Clasen [Sun, 28 Jun 2009 20:58:00 +0000 (16:58 -0400)]
Improve printing example
Handle Documents folder being NULL, and handle output formats.
Matthias Clasen [Sun, 28 Jun 2009 20:14:21 +0000 (16:14 -0400)]
Improve handling of print-to-file uri
Going from print-to-file to a real printer and back used to nuke
an app-provided uri; now we keep the initial settings around to
avoid that. Fixes bug 587086.
Matthias Clasen [Sun, 28 Jun 2009 20:13:33 +0000 (16:13 -0400)]
Whitespace cleanups
Jorge Gonzalez [Sat, 27 Jun 2009 12:57:54 +0000 (14:57 +0200)]
Updated Spanish translation
Benjamin Otte [Mon, 22 Jun 2009 19:51:19 +0000 (21:51 +0200)]
make the size column resizable
Benjamin Otte [Thu, 25 Jun 2009 13:50:55 +0000 (15:50 +0200)]
make sure the "Create folder" button doesn't get shown accidentally
Switching to search or recent files mode and back to browse mode made
the button visible previously
Benjamin Otte [Tue, 23 Jun 2009 07:26:23 +0000 (09:26 +0200)]
check for allowed NULL inside g_return_if_fail() statements
This patch replaces
if (foo != NULL)
g_return_if_fail (GTK_IS_FOO (foo));
with
g_return_if_fail (foo == NULL || GTK_IS_FOO (foo));
Benjamin Otte [Sun, 21 Jun 2009 20:35:15 +0000 (22:35 +0200)]
clarify the init value for the default sort column id
The patch is basically s/-2/GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID/
Benjamin Otte [Thu, 18 Jun 2009 19:10:33 +0000 (21:10 +0200)]
unconditionally set right alignment for the size column
Benjamin Otte [Wed, 17 Jun 2009 13:17:04 +0000 (15:17 +0200)]
remove unused variables
David Zeuthen [Mon, 22 Jun 2009 21:22:23 +0000 (17:22 -0400)]
Bug 586691 – Better GtkInfoBar defaults
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ivar Smolin [Thu, 25 Jun 2009 16:29:22 +0000 (19:29 +0300)]
Updating Estonian translation
Michael Natterer [Thu, 25 Jun 2009 11:30:15 +0000 (13:30 +0200)]
Fix warning about uninitialized variable plus spacing and indentation cleanup
Matthias Clasen [Thu, 25 Jun 2009 05:23:50 +0000 (01:23 -0400)]
Demo setting an output name for print to file
It turns out that no application is doing this, since it is not
obvious. Adding a demo here is at least a start.
Matthias Clasen [Wed, 24 Jun 2009 05:01:51 +0000 (01:01 -0400)]
Add a way to turn off toggle spacing in menus
Reserving toggle space is nice for consistency in main menus
and context menus, but it gets in the way in special situations,
such as combo boxes, tabular menus, etc.
Marco Túlio Gontijo e Silva [Mon, 22 Jun 2009 13:18:44 +0000 (10:18 -0300)]
Updated Brazilian Portuguese translation
Stanislav Brabec [Tue, 23 Jun 2009 19:05:32 +0000 (14:05 -0500)]
bgo#529908 - Sanitize handling of motion events in GtkNotebook
GtkNotebook used gdk_window_get_pointer() incorrectly, as it already
had coordinates from various GdkEvents. Using get_pointer() means
that you get pointer positions *after* the event has happened, which
leads to visual out-of-sync results, or inadvertently detached tabs if
you click on them while your machine is being slow.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Bastien Nocera [Mon, 22 Jun 2009 16:19:21 +0000 (17:19 +0100)]
Bug 461944 – pressing the volume icon in full screen shuts down the sound
Don't pass the click on the button through to the scale when the
dock popup will be moved, otherwise we could end up changing the
sound in unexcepted ways (to zero for vertical popups at the bottom
of the screen for example).
Tristan Van Berkom [Thu, 18 Jun 2009 19:46:02 +0000 (15:46 -0400)]
Accelerators failed for submenus (GNOME bug 582025)
gtk/gtkmenuitem.c: Override custom_tag_finished() for "accelerator" and search
the correct toplevel GtkWindow to attach accelerators to menu items.
gtk/gtkwidget.[ch]: Added _gtk_widget_buildable_finish_accelerator() to allow
subclasses to specify a toplevel window to associate with when parsing <accelerator>
tags
Matthias Clasen [Mon, 22 Jun 2009 15:46:03 +0000 (11:46 -0400)]
Forgotten header file
Matthias Clasen [Mon, 22 Jun 2009 14:00:19 +0000 (10:00 -0400)]
Don't force toggle size for tabular menus either
Matthias Clasen [Mon, 22 Jun 2009 04:53:14 +0000 (00:53 -0400)]
Remove extra padding from comboboxes
We do want to have consistent padding in menus in menubars and context
menus, but the menus used in comboboxes don't need the extra padding.
Add private GtkMenu API for turning this off. Bug 564063
Matthias Clasen [Mon, 22 Jun 2009 03:30:27 +0000 (23:30 -0400)]
Fix 'Add to bookmarks' initial sensitivity
Make sure that we always call bookmarks_check_add_sensitivity() at
least once before popping up a newly created menu. Fixes bug 585858.
Jorge Gonzalez [Sun, 21 Jun 2009 08:54:57 +0000 (10:54 +0200)]
Updated Spanish translation
Matthias Clasen [Sun, 21 Jun 2009 00:51:37 +0000 (20:51 -0400)]
Update some links in the tutorial
This fixes bug 585953.
Matthias Clasen [Sat, 20 Jun 2009 17:54:33 +0000 (13:54 -0400)]
Reduce roundtrips
Setting a tooltip on a widget unfortunately triggers several roundtrips
to the X server. We reduce this overhead by only doing it if the
widget is visible, and by deferring to an idle. See bug 585626.
Matthias Clasen [Sat, 20 Jun 2009 17:53:32 +0000 (13:53 -0400)]
Add a title property to GtkStatusIcon
This can be used to give ATs a string to display for tray icons.
See bug 585802.
Federico Mena Quintero [Fri, 19 Jun 2009 02:29:54 +0000 (21:29 -0500)]
bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashing
The virtual method list_shortcut_folders returns a GSList * of GFile *.
In turn, gtk_file_chooser_list_shortcut_folders() converts those to strings.
However, the delegate in gtkfilechooserutils.c was calling
gtk_file_chooser_list_shortcut_folders() every time, so we were trying
to convert invalid data.
Now we have an internal function that deals with GFile *. That
function is called by the delegate, and the conversion is done only
once by the API entry points.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Matthias Clasen [Fri, 19 Jun 2009 02:08:31 +0000 (22:08 -0400)]
Fix an oversight in mnemonic handling
In some situations, GtkButton would ignore the use-underline
property. This was reported in bug 586330.
Federico Mena Quintero [Fri, 19 Jun 2009 00:48:38 +0000 (19:48 -0500)]
Show the size column by default in the file chooser
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Ryan Lortie [Thu, 18 Jun 2009 19:11:57 +0000 (15:11 -0400)]
Use g_mapped_file_unref()
- drop deprecated use of g_mapped_file_free()
- bump glib version requirement
Federico Mena Quintero [Thu, 18 Jun 2009 01:33:57 +0000 (20:33 -0500)]
Don't set the sort column when there is no model
We can't set the sort column when we load the GtkFileChooser's settings, as the
file models may not have been created yet. Wait until the models are actually
present; then we can set the sort column.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Benjamin Otte [Wed, 17 Jun 2009 08:28:03 +0000 (10:28 +0200)]
fix compile warnings
Fallout from running make CFLAGS="-Werror"; mostly missing casts and
constness issues.
Daniel Nylander [Tue, 16 Jun 2009 19:04:18 +0000 (21:04 +0200)]
Updated Swedish translation
Vincent Untz [Tue, 16 Jun 2009 15:34:10 +0000 (17:34 +0200)]
Use g_return_val_if_fail instead of g_return_if_fail
Matthias Clasen [Tue, 16 Jun 2009 16:37:33 +0000 (12:37 -0400)]
More uses of the get_cell_renderers functions
Matthias Clasen [Tue, 16 Jun 2009 16:21:36 +0000 (12:21 -0400)]
More instances of those deprecated functions
Matthias Clasen [Tue, 16 Jun 2009 15:48:16 +0000 (11:48 -0400)]
Forgot one use in libgail
Matthias Clasen [Tue, 16 Jun 2009 15:27:06 +0000 (11:27 -0400)]
Don't use deprecated api internally
Matthias Clasen [Tue, 16 Jun 2009 01:48:53 +0000 (21:48 -0400)]
Bump version to 2.17.3
Matthias Clasen [Tue, 16 Jun 2009 01:45:40 +0000 (21:45 -0400)]
2.17.2
Matthias Clasen [Tue, 16 Jun 2009 00:46:34 +0000 (20:46 -0400)]
Update NEWS
Matthias Clasen [Tue, 16 Jun 2009 00:07:37 +0000 (20:07 -0400)]
Add missing GtkInfoBar functions to the docs
Matthias Clasen [Tue, 16 Jun 2009 00:05:49 +0000 (20:05 -0400)]
Don't export a private function
Matthias Clasen [Tue, 16 Jun 2009 00:05:24 +0000 (20:05 -0400)]
Fix docs build
Matthias Clasen [Tue, 16 Jun 2009 00:04:48 +0000 (20:04 -0400)]
Properly export gtk_info_bar_response
Also fix up its docs.
Matthias Clasen [Mon, 15 Jun 2009 22:04:49 +0000 (18:04 -0400)]
Cleanup some translation handling
Use g_*gettext functions in gdk-pixbuf instead direct gettext
calls to benefit from the maybe-dont-translate functionality
in GLib. Also, replace a hand-rolled version by g_dpgettext2
in gtkbuilderparser.c. Fixes bug 585791.
Matthias Clasen [Mon, 15 Jun 2009 21:22:58 +0000 (17:22 -0400)]
Fix the docs for gtk_recent_info_get_application_info()
The documentation for the function says that the app_exec string
should be freed, but we return a pointer to the internal string
without duplicating it. Since the app_exec string is valid as long
as the GtkRecentInfo is valid the documentation should be fixed
and the out argument should be constified. Fixes #584832.
Matthias Clasen [Mon, 15 Jun 2009 21:19:43 +0000 (17:19 -0400)]
Add some more font sizes
Make 15 and 17 available in the list. See bug 585371
Matthias Clasen [Mon, 15 Jun 2009 21:11:14 +0000 (17:11 -0400)]
Deprecate get_cell_renderers implementations
These have been superseded by gtk_cell_layout_get_cells.
Fixes bug 562335.
Daniel Elstner [Sat, 13 Jun 2009 23:14:00 +0000 (01:14 +0200)]
Terminate case with break in switch statement
* gtk/gtkstatusicon.c (gtk_status_icon_set_property): Add missing
break statements to unterminated case blocks inside switch.
Matthias Clasen [Mon, 15 Jun 2009 19:10:34 +0000 (21:10 +0200)]
Bug 565317 - Resulting image of GtkCellRendererPixbuf depends on order of set properties
(gtk_cell_renderer_pixbuf_set_property): add back evil code that makes
sure that the current image is only unset if the new image was created
from the same property or the new property is not NULL.
Federico Mena Quintero [Mon, 15 Jun 2009 17:37:07 +0000 (12:37 -0500)]
bgo#580560 - Make Backspace work in the file chooser to to to the parent directory
GtkFileChooserDefault actually implements a binding signal for
Backspace, to make it go to the parent directory. However,
GtkTreeView was eating our Backspace, and thus the file chooser was
not getting a chance to execute its binding signal.
GtkTreeView implements a Backspace binding itself, which it uses to
move to the parent node of the current cursor node. However, the
binding handler would return TRUE even if there was no parent to the
current node. Now the binding handler only returns TRUE if it
actually changed the cursor.
Additionally, gtk_tree_view_key_press() sees if no bindings handled a
key press; in that case, it re-sends the key press to the treeview's
search entry. However, sending a Backspace to an empty entry makes
the entry beep. Thus, we add a flag that gets set from GtkTreeView's
Backspace binding handler, to tell gtk_tree_view_key_press() when it
should *not* re-emit the key press on the search entry. Sort of,
"yeah, I didn't handle this key press, but I don't want you to send it
to the search entry, either!".
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Matthias Clasen [Mon, 15 Jun 2009 05:50:27 +0000 (01:50 -0400)]
Add entry about xdg user dir icons
Davyd Madeley [Mon, 15 Jun 2009 01:48:14 +0000 (09:48 +0800)]
Merge branch 'button-box-orientable-584598'
Davyd Madeley [Tue, 2 Jun 2009 12:01:19 +0000 (20:01 +0800)]
Support GtkOrientable for GtkButtonBox
Edit: Update for coding style
Davyd Madeley [Tue, 2 Jun 2009 10:58:10 +0000 (18:58 +0800)]
Testcase for GtkOrientable
Jorge Gonzalez [Sat, 13 Jun 2009 11:21:01 +0000 (13:21 +0200)]
Updated Spanish translation
Benjamin Gramlich [Fri, 12 Jun 2009 22:31:28 +0000 (17:31 -0500)]
bgo#484922 - Remember the sort column and order in the file chooser
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Benjamin Gramlich [Fri, 12 Jun 2009 21:40:25 +0000 (16:40 -0500)]
Add load/save functions for the sort column order in GtkFileChooserSettings
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Federico Mena Quintero [Fri, 12 Jun 2009 19:09:47 +0000 (14:09 -0500)]
Add an --initial-folder option to testfilechooser.c
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Federico Mena Quintero [Fri, 12 Jun 2009 19:02:37 +0000 (14:02 -0500)]
Add an --initial-filename option to testfilechooser.c
We can use this to test bugs that happen when setting a filename before the
file chooser is shown, as in bgo#161670
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Federico Mena Quintero [Fri, 12 Jun 2009 18:59:29 +0000 (13:59 -0500)]
Fix compiler warnings
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Milan Bouchet-Valat [Fri, 12 Jun 2009 18:25:26 +0000 (13:25 -0500)]
bgo#562579 - Don't show errors when the initial folder does not exist
The previous patch for this bug was about the initial *file* not existing,
but this also handles the initial *folder* not existing
(such as /usr/nonexistent/nonexistent.txt).
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Milan Bouchet-Valat [Fri, 12 Jun 2009 16:45:43 +0000 (11:45 -0500)]
bgo#171416 - Don't create a folder with the default name 'Type name of new folder'
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Matthias Clasen [Fri, 12 Jun 2009 14:21:42 +0000 (10:21 -0400)]
Add a missing newline
There was a missing newline in one of the g_printerr messages
in updateiconcache.c. String change.
Milan Bouchet-Valat [Fri, 12 Jun 2009 00:58:51 +0000 (19:58 -0500)]
bgo#355851 - Hide backup files in the file chooser
Backup files are hidden along with dotfiles, just like Nautilus.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Milan Bouchet-Valat [Thu, 11 Jun 2009 23:41:05 +0000 (18:41 -0500)]
bgo#486839 - The path bar's area shouldn't change vertical size to avoid the browse widgets jumping
We now use a GtkSizeGroup to control the vertical size of the various widgets
that get put in the path bar's area: the location bar, the search entry,
the recently-used title label.
This keeps the shortcuts pane and the file list from jumping up and down
when one switches between operation modes (browse/search/recently-used).
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Jorge Gonzalez [Thu, 11 Jun 2009 07:24:31 +0000 (09:24 +0200)]
Updated Spanish translation
Jorge Gonzalez [Thu, 11 Jun 2009 07:24:26 +0000 (09:24 +0200)]
Updated Spanish translation
Matthias Clasen [Thu, 11 Jun 2009 05:28:39 +0000 (01:28 -0400)]
Add a long description for GtkSettings
Among other things, the description mentions the problem in
bug 585024, that some settings may not be available before the
widget class has been realized.
Manoj Kumar Giri [Wed, 10 Jun 2009 14:23:08 +0000 (19:53 +0530)]
Added entries for Hindi Translation updated by Rajesh Ranjan
Manoj Kumar Giri [Wed, 10 Jun 2009 14:21:40 +0000 (19:51 +0530)]
Updated Hindi Translation on behalf of Rajesh Ranjan
Kjartan Maraas [Wed, 10 Jun 2009 07:50:37 +0000 (09:50 +0200)]
Updated Norwegian bokmål translation.
Ivar Smolin [Tue, 9 Jun 2009 20:00:46 +0000 (23:00 +0300)]
Updating Estonian translation
Christian Persch [Sun, 7 Jun 2009 20:06:51 +0000 (22:06 +0200)]
Fix "srdcir" typo
Runa Bhattacharjee [Tue, 9 Jun 2009 04:54:18 +0000 (10:24 +0530)]
Updated Bengali India Translations
Matthias Clasen [Mon, 8 Jun 2009 13:54:59 +0000 (09:54 -0400)]
Update docs to match actual API
Remove references to gtk_info_bar_set_contents(), and update
the example to use gtk_info_bar_get_content_area().
Manoj Kumar Giri [Mon, 8 Jun 2009 14:05:26 +0000 (19:35 +0530)]
Updated Oriya Translation
Marek Kasik [Mon, 8 Jun 2009 13:37:32 +0000 (15:37 +0200)]
Add ability to print selection
Add a new radio button "Selection" to the print dialog. Its presence
depends on calling of functions gtk_print_operation_set_support_selection()
and gtk_print_dialog_unix_set_support_selection().
Sensitivity of the radio depends on calling of
functions gtk_print_operation_set_has_selection() and
gtk_print_dialog_unix_set_has_selection().
There are new properties GtkPrintUnixDialog::support-selection,
GtkPrintUnixDialog::has-selection, GtkPrintOperation::support-selection
and GtkPrintOperation::has-selection. Corresponding getters are
gtk_print_dialog_unix_get_support_selection(),
gtk_print_dialog_unix_get_has_selection(),
gtk_print_operation_get_support_selection() and
gtk_print_operation_get_has_selection().
Application has to set number of pages to which the selection will be formated
in GtkPrintOperation::begin-print's callback by the
gtk_print_operation_set_n_pages() function (bug #344519).
There is also new property GtkPrintUnixDialog::manual-capabilities controled by
gtk_print_unix_dialog_set_manual_capabilities() and
gtk_print_unix_dialog_get_manual_capabilities().
Mattias Põldaru [Mon, 8 Jun 2009 08:52:27 +0000 (11:52 +0300)]
Updating Estonian translation
Matthias Clasen [Mon, 8 Jun 2009 02:19:52 +0000 (22:19 -0400)]
Don't grab the keyboard during DND
Instead use passive grabs for the few keys we care about.
With a corresponding metacity change, this will allow workspace
switching and focus cycling during DND, which is very useful.
Fixes bug 390312.
Björn Lindqvist [Sat, 30 May 2009 13:45:21 +0000 (15:45 +0200)]
Halt configure if selected cairo backend is missing, fixes Bug 565998
Matthias Clasen [Sat, 6 Jun 2009 03:06:12 +0000 (23:06 -0400)]
Remove nonworking conditionals
Don't pretend that we care about XShape-less builds anymore.
See bug 584637.
Matthias Clasen [Sat, 6 Jun 2009 02:36:48 +0000 (22:36 -0400)]
Avoid warnings in atom conversion
Cave in and revert to silently converting GDK_NONE to None.
Fixes bug 580511.
Matthias Clasen [Sat, 6 Jun 2009 00:11:44 +0000 (20:11 -0400)]
Don't unselect when resizing
This was causing problems in Epiphany. Fixes bug 584805.
Matthias Clasen [Fri, 5 Jun 2009 19:01:00 +0000 (15:01 -0400)]
Update NEWS for GtkInfoBar
Matthias Clasen [Fri, 5 Jun 2009 18:56:08 +0000 (14:56 -0400)]
Add a message area widget
It is called GtkInfoBar. See bug 555344.
Denis Chertykov [Fri, 5 Jun 2009 19:07:10 +0000 (14:07 -0500)]
bgo#327152 - Ellipsize long directory names in GtkPathBar, and better layout for the pathbar
Ellipsize labels in the Save folder's combo so they don't grow too wide.
Ellipsize labels in normal directory buttons in the pathbar, and make
their requisition's width reasonably small. Use a tooltip for buttons
that got ellipsized.
Instead of placing the down-slider directly beside the last button in
the pathbar, use the remaining space in the pathbar for the last
button. Use a different method to find the first visible button.
Walk down from the end, adding buttons until we use all free space.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Og Maciel [Fri, 5 Jun 2009 16:16:57 +0000 (12:16 -0400)]
Updated Brazilian Portuguese translaiton. Fixes b.g.o. #584922
Brian Cameron [Fri, 5 Jun 2009 05:42:01 +0000 (00:42 -0500)]
Improve Solaris Xinerama configure detection
The latest releases of Solaris now ship with the X.org Xserver, so it is
better to use the Xfree Xinerama interfaces if available. This commit fixes
the configure script so that it first tries to use the Xfree interfaces and
only falls back to the Solaris-specific interfaces if they are not available.
This way, older releases of Solaris which do not use X.org also will work.
(Bug 580079)
Marek Kasik [Thu, 4 Jun 2009 16:49:29 +0000 (18:49 +0200)]
Print in correct order when printing 4 pages per sheet to landscape
Rotates page layout according to selected paper orientation
when printing through CUPS backend (#420335).
Praveen Arimbrathodiyil [Tue, 2 Jun 2009 06:38:22 +0000 (23:38 -0700)]
important transltion fixes to undo, redo and about
Matthias Clasen [Sun, 31 May 2009 03:26:37 +0000 (23:26 -0400)]
Improve GtkMenuPositionFunc docs
Add a note about gtk_menu_set_monitor().
Ask H. Larsen [Sat, 30 May 2009 20:16:31 +0000 (22:16 +0200)]
Updated Danish translation
Matthias Clasen [Sat, 30 May 2009 06:14:03 +0000 (02:14 -0400)]
Avoid assertions due to invalid page sequence
It is much nicer to handle this gracefully in compute_last_button_state.
Fixes bug 584125.
Cody Russell [Sat, 30 May 2009 04:10:14 +0000 (00:10 -0400)]
Improve GtkEntry handling of invalid stock ids
Instead of silently showing no icon, show a "missing image"
icon, like GtkImage does in the same situation. Fixes bug 579590.
Caolan McNamara [Sat, 30 May 2009 04:05:35 +0000 (00:05 -0400)]
Plug a memory leak in Xrandr code